

$( document ).ready(function() {
    var cardSwipeCallBack = function(e){
        console.info(e);
        if(e.gesture.direction == "left"){
            $(".planCreator").addClass("hidePlanCreator");
            $('.commentInput').show();
        }else if(e.gesture.direction == "right"){
            $(".planCreator").removeClass("hidePlanCreator");
            $('.commentInput').hide();
        }
    }
    $('.commentInput').hide();
    $(".taskList").hammer().on("swipe", cardSwipeCallBack);
    $(".planCreator").hammer().on("swipe", cardSwipeCallBack);
    
});


